import type { PageQry } from "@/types/common";

export class ProxyTransformPageQry implements PageQry {
  size: number = 10;
  current: number = 1;
  nameLike?: string;
}

export interface ProxyTransformDTO {
  id: string;
  name: string;
  type: TransformType;
  port: number;
  socketIp: string;
  socketPort: number;
  start: boolean;
}

export enum TransformType {
  Socks4 = 1,
  Socks5 = 2
}

export class ProxyTransformSaveCmd {
  id?: string;
  name: string = "";
  type: TransformType = TransformType.Socks5;
  port?: number;
  socketIp: string = "";
  socketPort?: number;
}
